<!--conf
<sample>
              <product version="1.4" edition="std"/>
                     <modifications>
                            <modified date="070101"/>
                     </modifications>
               </sample>
 --> 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
	<title>Using images in header</title>
	
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link rel="stylesheet" type="text/css" href="../../../codebase/dhtmlx.css"/>
	<script src="../../../codebase/dhtmlx.js"></script>
	
</head>
<body onload="init_grid()">
	<h1>Using images in header</h1>
	<p>dhtmlxGrid allows using images for column headers formating. In this case you can specify different images for column header, sorted in ascending and descending way.</p>
	
	<div id="gridbox" style="width:325px;height:260px;background-color:white;overflow:hidden"></div>

<br>

		<strong>Some notes about using images as column headers:</strong>
			<li>create two additional images for sorting (asc,desc) using original image name as follows:</li>
				<ul type="square">
				<li>original: column_a.gif</li>
				<li>asc: column_a.asc.gif</li>
				<li>desc: column_a.des.gif</li>
				</ul>
			<li>Take into account that IE and Mozilla count the width of cell differently (ie: with border, mozilla: without)</li>
			<li>Put all (three per column) images in grid images folder.</li>		
<script>
function init_grid(argument) {
	mygrid = new dhtmlXGridObject('gridbox');
	mygrid.setImagePath("../../../codebase/imgs/");
	mygrid.enableHeaderImages(true);
	mygrid.setHeader("../common/column_a.gif,../common/column_b.gif");
	mygrid.setInitWidths("160,160");
	mygrid.setColAlign("right,left");
	mygrid.setColTypes("ro,ed");
	mygrid.setColSorting("int,str");
	mygrid.setSkin("dhx_skyblue");
	mygrid.init();
	mygrid.loadXML("../common/grid.xml");	
}
</script>

</body>
</html>
